package com.dzirtbry.MedicineAnalizer.Types;


public class MedicineList extends AbstractSaveableList<Medicine>{

	/**
	 * 
	 */
	private static final long serialVersionUID = -581203319983213220L;
	
//	public static void main(String[] args) {
//		MedicineList list = new MedicineList();
//		list.add(new Medicine("First aid kit", 1));
//		list.add(new Medicine("Analgin", 2, 100f));
//		list.add(new Medicine("Sorbex", 3, 200f));
//		list.add(new Medicine("Second aid kit", 4));
//		list.add(new Medicine("Spasmalgon", 5, 100f));
//		list.add(new Medicine("Iod", 6, 200f));
//		
//		try {
//			list.load("E:\\testList2.ser");
//			list.save("E:\\testList2.ser");
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
//		for (Medicine med: list) {
//			System.out.println(String.format("%d - %s (%.2f)", med.getId(), med.getName(), med.getPrice()));
//		}
//	}
	
}
